package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * author: zhanghualang
 * date: 2020-07-10 15:41
 * Description:商品销量排名vo
 */
@Data
public class CommodityInfoRankVO implements Serializable {
    @ApiModelProperty(value = "商品id")
    private String commodityId;
    @ApiModelProperty(value = "商品名称")
    private String commodityName;
    @ApiModelProperty(value = "商品主图")
    private String logoUrl;
    @ApiModelProperty(value = "销量")
    private Integer total;
    @ApiModelProperty(value = "金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal money;
}
